package com.hg.design.behavior.visitor.biancheng.ex3;

//具体访问者B类
public class ConcreteVisitorB implements Visitor {
    public void visit(LeafElement element) {
        System.out.println("具体访问者B访问-->" + element.operation());
    }

    public void visit(CompositeElement element) {
        System.out.println("具体访问者B访问-->" + element.operation());
    }
}
